package tt.dz.service.base;

import tt.dz.entity.base.JsonCommon;
import tt.dz.entity.base.JsonForList;
import tt.dz.entity.base.OmsCommonParam;
import tt.dz.entity.exception.BizException;
import tt.dz.entity.system.OmsOperationSpList;

public interface OperMerchantService
{
	/**
	 * 添加一个运营商
	 *
	 * @param oom       运营商信息
	 * @param oomType   运营商信息 1：自营，0：合作，2：虚拟
	 * @param factoryId 工厂id 如果是厂商变成一个运营商
	 * @return
	 */
	JsonCommon<OmsOperationSpList> addOmsOperMerchant(OmsOperationSpList oom, String oomType, String factoryId);

	/**
	 * 更新运营商信息
	 *
	 * @param oom
	 * @return
	 */
	JsonCommon<OmsOperationSpList> updateOmsOperMerchant(OmsOperationSpList oom, String isFactory, String factoryId);

	/**
	 * 删除运营商
	 *
	 * @param id
	 * @param delCasecade
	 * @return
	 */
	JsonCommon<?> deleteOmsOperMerchant(String id, String delCasecade);

	/**
	 * @param param
	 * @param oom
	 * @return
	 */
	JsonForList<OmsOperationSpList> findPageOmsOperMerchant(OmsCommonParam param, OmsOperationSpList oom);

	void sycnMerchantFromMasterServer() throws BizException;

	public String getFactoryId(String oper_merchant_id);
}
